Skip to content

Conversation

@Coca162
Copy link
Contributor

@Coca162 Coca162 commented Jan 2, 2026

changelog: [transmuting_null]: now checks for ptr::without_provenance and ptr::without_provenance_mut which create null pointers

Coca162 added a commit to Coca162/rust that referenced this pull request Jan 2, 2026
Coca162 added a commit to Coca162/rust that referenced this pull request Jan 2, 2026
…_mut`

Adds diagnostic items for `core::ptr::without_provenance` and `core::ptr::without_provenance_mut`. Will be used to enhance clippy lint `transmuting_null`, see rust-lang/rust-clippy#16336.
Coca162 added a commit to Coca162/rust that referenced this pull request Jan 2, 2026
…_mut`

Adds diagnostic items for `core::ptr::without_provenance` and `core::ptr::without_provenance_mut`. Will be used to enhance clippy lint `transmuting_null`, see rust-lang/rust-clippy#16336.
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jan 3, 2026
…tics, r=Urgau

Add diagnostic items for `without_provenance` and `without_provenance_mut`

Adds diagnostic items for `core::ptr::without_provenance` and `core::ptr::without_provenance_mut`. Will be used to enhance clippy lint `transmuting_null`, see rust-lang/rust-clippy#16336.
rust-timer added a commit to rust-lang/rust that referenced this pull request Jan 3, 2026
Rollup merge of #150627 - Coca162:without_provenance_diagnostics, r=Urgau

Add diagnostic items for `without_provenance` and `without_provenance_mut`

Adds diagnostic items for `core::ptr::without_provenance` and `core::ptr::without_provenance_mut`. Will be used to enhance clippy lint `transmuting_null`, see rust-lang/rust-clippy#16336.
@Coca162
Copy link
Contributor Author

Coca162 commented Jan 3, 2026

Waiting for nightly version update

…provenance_mut`

Currently `without_provenance`/`without_provenance_mut` do not have a `rustc_diagnostic_item` so this change is dependent on them being added before being ready to be used.

changelog: [`transmuting_null`]: now checks for [`ptr::without_provenance`](https://doc.rust-lang.org/core/ptr/fn.without_provenance.html) and [`ptr::without_provenance_mut`](https://doc.rust-lang.org/core/ptr/fn.without_provenance_mut.html) which create null pointers
@Coca162 Coca162 force-pushed the transmute-without-provenance-null branch from 9310852 to 7d0b1e1 Compare January 9, 2026 07:37
@Coca162 Coca162 marked this pull request as ready for review January 9, 2026 07:47
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 9, 2026
@rustbot
Copy link
Collaborator

rustbot commented Jan 9, 2026

r? @samueltardieu

rustbot has assigned @samueltardieu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@samueltardieu samueltardieu added this pull request to the merge queue Jan 9, 2026
Merged via the queue into rust-lang:master with commit b4dea7c Jan 9, 2026
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 9, 2026
github-actions bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Jan 12, 2026
…rgau

Add diagnostic items for `without_provenance` and `without_provenance_mut`

Adds diagnostic items for `core::ptr::without_provenance` and `core::ptr::without_provenance_mut`. Will be used to enhance clippy lint `transmuting_null`, see rust-lang/rust-clippy#16336.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants